package com.item.service;

import com.item.dao.PostReportMapper;
import com.item.dao.model.PostReport;
import com.item.dao.model.PostReportExample;
import com.item.dao.model.PostReportKey;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PostReportService {
    @Autowired
    private PostReportMapper postReportMapper;

    private static final Logger logger = Logger.getLogger(PostReportService.class);

    public int countByExample(PostReportExample example) {
        return this.postReportMapper.countByExample(example);
    }

    public PostReport selectByPrimaryKey(PostReportKey key) {
        return this.postReportMapper.selectByPrimaryKey(key);
    }

    public List<PostReport> selectByExample(PostReportExample example) {
        return this.postReportMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(PostReportKey key) {
        return this.postReportMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(PostReport record) {
        return this.postReportMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(PostReport record) {
        return this.postReportMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(PostReportExample example) {
        return this.postReportMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(PostReport record, PostReportExample example) {
        return this.postReportMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(PostReport record, PostReportExample example) {
        return this.postReportMapper.updateByExample(record, example);
    }

    public int insert(PostReport record) {
        return this.postReportMapper.insert(record);
    }

    public int insertSelective(PostReport record) {
        return this.postReportMapper.insertSelective(record);
    }
}